//
//  ViewController.m
//  Tmac
//
//  Created by mac on 16/11/23.
//  Copyright © 2016年 LuWeiRen. All rights reserved.
//

#import "ViewController.h"
#import "OneViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.title = @"全世界";
    self.navigationController.navigationBar.backgroundColor = [UIColor colorWithRed:0.23 green:0.92 blue:0.85 alpha:1.0];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(btn)];
    
        
    
}

-(void)btn{
    OneViewController * One = [[OneViewController alloc]init];
    
    [self.navigationController pushViewController:One animated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
